package com.ruoyi.wechat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * dynamic对象 c_dynamic
 * 
 * @author yeluochen
 * @date 2024-12-24
 */
public class Dynamic
{
    private static final long serialVersionUID = 1L;

    /** 动态Id */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 动态文字 */
    @Excel(name = "动态文字")
    private String textContent;

    private Date createTime;

    private List<DynamicImg> images;

    private CampUser userInfo;

    private List<Comments> comments;


    public List<Comments> getComments() {
        return comments;
    }

    public void setComments(List<Comments> comments) {
        this.comments = comments;
    }

    public CampUser getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(CampUser userInfo) {
        this.userInfo = userInfo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<DynamicImg> getImages() {
        return images;
    }

    public void setImages(List<DynamicImg> images) {
        this.images = images;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setTextContent(String textContent) 
    {
        this.textContent = textContent;
    }

    public String getTextContent() 
    {
        return textContent;
    }

    public Dynamic(String id, String userId, String textContent, List<DynamicImg> images, CampUser userInfo ,List<Comments> comments) {
        this.id = id;
        this.userId = userId;
        this.textContent = textContent;
        this.images = images;
        this.userInfo = userInfo;
        this.comments = comments;
    }
    public Dynamic() {
        super();
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("textContent", getTextContent())
            .append("images", getImages())
            .append("createTime", getCreateTime())
            .append("userInfo", getUserInfo())
            .append("comments", getComments())
            .toString();
    }
}
